<?php

namespace Common\Context;

use Hyperf\Context\Context;

class TcpContext extends Context {
    const SERVER = 'tcp.server';

    const FD = 'tcp.fd';


    public static function setFd($content): void
    {
        self::set(self::FD,$content);
    }

    public static function setServer($content): void
    {
        self::set(self::SERVER,$content);
    }

    public static function getContext($key)
    {
        return self::get($key);
    }
}